import Vue from 'vue'

import 'normalize.css/normalize.css'
import 'font-awesome/css/font-awesome.min.css'
// 引入element-ui
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css';
import '@/theme/element-00C0EF/index.css'
import AFTableColumn from 'af-table-column'

// 兼容IE
import 'babel-polyfill'

import '@/icons' // icon
import App from './App'
// vuex
import store from './store'
import router from './router'
import './router/permission'
// 断点续传 分片上传
import uploader from 'vue-simple-uploader'

import MyPlugin from '@/assets/js/print'
import hospMixin from '@/mixin/reportOptions.js'
import drective from './drective'
import {
  message
} from '@/utils/resetMessage'

Vue.config.productionTip = false

// 数据图表
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

// import utils from '@/utils/utils'
// Vue.prototype.$utils = utils

Vue.prototype.bus = new Vue()

Vue.use(MyPlugin)
Vue.use(ElementUI)
Vue.use(uploader)
Vue.use(drective)
Vue.use(AFTableColumn)

Vue.prototype.$message = message
Vue.mixin(hospMixin)
Vue.directive('removeAriaHidden', {
  bind(el, binding) {
    const ariaEls = el.querySelectorAll('.el-radio__original')
    ariaEls.forEach((item) => {
      item.removeAttribute('aria-hidden')
    })
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
